<?php
namespace app\login\validate;

use think\Validate;

class Dologin extends Validate{
	protected $rule = [
		'Account' => 'require|alphaNum|length:4,16',
        'Password' => 'require|alphaNum|length:6,16',
        'Captcha' => 'require|captcha',
	];
	
	protected $message = [
        'Account.require'=>'账号不能为空',
        'Account.alphaNum'=>'账号只能包含数字、字母',
        'Account.length'=>'账号必须4-16个字符',
        'Password.require'=>'密码不能为空',
        'Password.alphaNum'=>'密码只能包含字母、数字',
        'Password.length'=>'密码必须6-16个字符',
        'Captcha.require'=>'请输入验证码',
        'Captcha'=>'验证码错误',
    ]; 
}

?>